package com.wzp.yyptproject.controller;


import com.wzp.yyptproject.entity.JiBing;
import com.wzp.yyptproject.entity.NkBing;
import com.wzp.yyptproject.repository.JiBingRepository;
import com.wzp.yyptproject.repository.NkBingRepository;
import com.wzp.yyptproject.service.JiBingService;
import com.wzp.yyptproject.service.NkBingService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Slf4j
@RestController
@CrossOrigin
@RequestMapping("nkbing")
public class NkBingController {
    @Autowired
    private NkBingService nkBingService;
    @Autowired
    private NkBingRepository nkBingRepository;
    @GetMapping("findallnkbing")
    public List<NkBing> findAllKeShi(){
        List<NkBing> list = nkBingService.findAll();
            return list;

    }


}



